package self.hoy.demo.cloud.sentinel.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import self.hoy.demo.cloud.entities.CommonResult;

/**
 * @author 三共小不
 * @date 2020/6/19
 */
public class CustomerBlockHandler {
    public static CommonResult handlerException(BlockException e) {
        return new CommonResult(CommonResult.FAIL, "自定义fallback, global handler exception");
    }
}
